home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_3.lha
/
8_3
/
tstfloat.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
493b
|
30 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
include <string.h>
include "8_3_float.c"
/ copy a stream of doubles
include <error.h>
ain(int, char**)
for (;;)
{
double a;
if (!read_double(cout, cin, &a))
break;
cout << a << "\n";
if (!cout)
break;
}
if (!cin.eof())
error("error reading input");
if (cout.bad())
error("error writing output");
return 0;